package com.xdf.whiteaccount.entity;
import java.math.BigDecimal;
import java.io.Serializable;
/**
 * 由 chanchaw 创建于 2023-8-15 12:58:55，实现功能如下：
 * 1. 实现接口 Serializable
 * 2. 无参构造函数
 * 3. 建造者模式
 * 4. getter,setter,toString()
 * 成品合同明细表
 */
public class FabContractDetail implements Serializable {
    public FabContractDetail() {}
    private static final long serialVersionUID = 1L;

    private Long id;//自增主键
    private Long parentId;//外键=fab_contract_main.id
    private String goodsCategory;//产品种类：成品可分为：睡衣、毛毯，面料可分为：法兰绒、珊瑚绒、羊羔绒
    private String goodsSid;//产品编号，备用
    private String goodsName;//品名
    private String specification;//规格型号
    private BigDecimal widthd;//门幅数字
    private String widths;//门幅字符串
    private BigDecimal gramd;//克重数字
    private String grams;//克重字符串
    private String shape;//款式，款号
    private String color;//颜色
    private String colorNo;//色号
    private String pattern;//花型
    private String patternNo;//花号
    private String colorValue;//颜色代码
    private Integer qtyi;//数量整型
    private BigDecimal qtyd;//数量浮点
    private BigDecimal price;//单价，浮点
    private BigDecimal amount;//金额，浮点
    private String remark;//备注
    private String remark01;//备注01
    private String remark02;//备注02
    private Integer state;//默认1有效，0作废，-1删除
    private java.util.Date createTime;//创建时间，DB自动填充
    private String createUser;//创建人
    private java.util.Date lastTime;//最后一次修改时间
    private String lastUser;//最后一次修改人

    public Long getId(){return this.id;}
    public void setId(Long id){this.id = id;}
    public Long getParentId(){return this.parentId;}
    public void setParentId(Long parentId){this.parentId = parentId;}
    public String getGoodsCategory(){return this.goodsCategory;}
    public void setGoodsCategory(String goodsCategory){this.goodsCategory = goodsCategory;}
    public String getGoodsSid(){return this.goodsSid;}
    public void setGoodsSid(String goodsSid){this.goodsSid = goodsSid;}
    public String getGoodsName(){return this.goodsName;}
    public void setGoodsName(String goodsName){this.goodsName = goodsName;}
    public String getSpecification(){return this.specification;}
    public void setSpecification(String specification){this.specification = specification;}
    public BigDecimal getWidthd(){return this.widthd;}
    public void setWidthd(BigDecimal widthd){this.widthd = widthd;}
    public String getWidths(){return this.widths;}
    public void setWidths(String widths){this.widths = widths;}
    public BigDecimal getGramd(){return this.gramd;}
    public void setGramd(BigDecimal gramd){this.gramd = gramd;}
    public String getGrams(){return this.grams;}
    public void setGrams(String grams){this.grams = grams;}
    public String getShape(){return this.shape;}
    public void setShape(String shape){this.shape = shape;}
    public String getColor(){return this.color;}
    public void setColor(String color){this.color = color;}
    public String getColorNo(){return this.colorNo;}
    public void setColorNo(String colorNo){this.colorNo = colorNo;}
    public String getPattern(){return this.pattern;}
    public void setPattern(String pattern){this.pattern = pattern;}
    public String getPatternNo(){return this.patternNo;}
    public void setPatternNo(String patternNo){this.patternNo = patternNo;}
    public String getColorValue(){return this.colorValue;}
    public void setColorValue(String colorValue){this.colorValue = colorValue;}
    public Integer getQtyi(){return this.qtyi;}
    public void setQtyi(Integer qtyi){this.qtyi = qtyi;}
    public BigDecimal getQtyd(){return this.qtyd;}
    public void setQtyd(BigDecimal qtyd){this.qtyd = qtyd;}
    public BigDecimal getPrice(){return this.price;}
    public void setPrice(BigDecimal price){this.price = price;}
    public BigDecimal getAmount(){return this.amount;}
    public void setAmount(BigDecimal amount){this.amount = amount;}
    public String getRemark(){return this.remark;}
    public void setRemark(String remark){this.remark = remark;}
    public String getRemark01(){return this.remark01;}
    public void setRemark01(String remark01){this.remark01 = remark01;}
    public String getRemark02(){return this.remark02;}
    public void setRemark02(String remark02){this.remark02 = remark02;}
    public Integer getState(){return this.state;}
    public void setState(Integer state){this.state = state;}
    public java.util.Date getCreateTime(){return this.createTime;}
    public void setCreateTime(java.util.Date createTime){this.createTime = createTime;}
    public String getCreateUser(){return this.createUser;}
    public void setCreateUser(String createUser){this.createUser = createUser;}
    public java.util.Date getLastTime(){return this.lastTime;}
    public void setLastTime(java.util.Date lastTime){this.lastTime = lastTime;}
    public String getLastUser(){return this.lastUser;}
    public void setLastUser(String lastUser){this.lastUser = lastUser;}


    @Override
    public String toString() {
        return "FabContractDetail{" +
        ",id='" + id + '\'' +
        ",parentId='" + parentId + '\'' +
        ",goodsCategory='" + goodsCategory + '\'' +
        ",goodsSid='" + goodsSid + '\'' +
        ",goodsName='" + goodsName + '\'' +
        ",specification='" + specification + '\'' +
        ",widthd='" + widthd + '\'' +
        ",widths='" + widths + '\'' +
        ",gramd='" + gramd + '\'' +
        ",grams='" + grams + '\'' +
        ",shape='" + shape + '\'' +
        ",color='" + color + '\'' +
        ",colorNo='" + colorNo + '\'' +
        ",pattern='" + pattern + '\'' +
        ",patternNo='" + patternNo + '\'' +
        ",colorValue='" + colorValue + '\'' +
        ",qtyi='" + qtyi + '\'' +
        ",qtyd='" + qtyd + '\'' +
        ",price='" + price + '\'' +
        ",amount='" + amount + '\'' +
        ",remark='" + remark + '\'' +
        ",remark01='" + remark01 + '\'' +
        ",remark02='" + remark02 + '\'' +
        ",state='" + state + '\'' +
        ",createTime='" + createTime + '\'' +
        ",createUser='" + createUser + '\'' +
        ",lastTime='" + lastTime + '\'' +
        ",lastUser='" + lastUser + '\'' +
        '}';
    }

    public static class Builder{
        private Long id;
        private Long parentId;
        private String goodsCategory;
        private String goodsSid;
        private String goodsName;
        private String specification;
        private BigDecimal widthd;
        private String widths;
        private BigDecimal gramd;
        private String grams;
        private String shape;
        private String color;
        private String colorNo;
        private String pattern;
        private String patternNo;
        private String colorValue;
        private Integer qtyi;
        private BigDecimal qtyd;
        private BigDecimal price;
        private BigDecimal amount;
        private String remark;
        private String remark01;
        private String remark02;
        private Integer state;
        private java.util.Date createTime;
        private String createUser;
        private java.util.Date lastTime;
        private String lastUser;

        public Builder id(Long id){this.id = id;return this;}
        public Builder parentId(Long parentId){this.parentId = parentId;return this;}
        public Builder goodsCategory(String goodsCategory){this.goodsCategory = goodsCategory;return this;}
        public Builder goodsSid(String goodsSid){this.goodsSid = goodsSid;return this;}
        public Builder goodsName(String goodsName){this.goodsName = goodsName;return this;}
        public Builder specification(String specification){this.specification = specification;return this;}
        public Builder widthd(BigDecimal widthd){this.widthd = widthd;return this;}
        public Builder widths(String widths){this.widths = widths;return this;}
        public Builder gramd(BigDecimal gramd){this.gramd = gramd;return this;}
        public Builder grams(String grams){this.grams = grams;return this;}
        public Builder shape(String shape){this.shape = shape;return this;}
        public Builder color(String color){this.color = color;return this;}
        public Builder colorNo(String colorNo){this.colorNo = colorNo;return this;}
        public Builder pattern(String pattern){this.pattern = pattern;return this;}
        public Builder patternNo(String patternNo){this.patternNo = patternNo;return this;}
        public Builder colorValue(String colorValue){this.colorValue = colorValue;return this;}
        public Builder qtyi(Integer qtyi){this.qtyi = qtyi;return this;}
        public Builder qtyd(BigDecimal qtyd){this.qtyd = qtyd;return this;}
        public Builder price(BigDecimal price){this.price = price;return this;}
        public Builder amount(BigDecimal amount){this.amount = amount;return this;}
        public Builder remark(String remark){this.remark = remark;return this;}
        public Builder remark01(String remark01){this.remark01 = remark01;return this;}
        public Builder remark02(String remark02){this.remark02 = remark02;return this;}
        public Builder state(Integer state){this.state = state;return this;}
        public Builder createTime(java.util.Date createTime){this.createTime = createTime;return this;}
        public Builder createUser(String createUser){this.createUser = createUser;return this;}
        public Builder lastTime(java.util.Date lastTime){this.lastTime = lastTime;return this;}
        public Builder lastUser(String lastUser){this.lastUser = lastUser;return this;}
        public FabContractDetail build(){
            return new FabContractDetail(this);
        }
    }

    public static Builder builder(){return new Builder();}
    public FabContractDetail(Builder builder){
        this.id = builder.id;
        this.parentId = builder.parentId;
        this.goodsCategory = builder.goodsCategory;
        this.goodsSid = builder.goodsSid;
        this.goodsName = builder.goodsName;
        this.specification = builder.specification;
        this.widthd = builder.widthd;
        this.widths = builder.widths;
        this.gramd = builder.gramd;
        this.grams = builder.grams;
        this.shape = builder.shape;
        this.color = builder.color;
        this.colorNo = builder.colorNo;
        this.pattern = builder.pattern;
        this.patternNo = builder.patternNo;
        this.colorValue = builder.colorValue;
        this.qtyi = builder.qtyi;
        this.qtyd = builder.qtyd;
        this.price = builder.price;
        this.amount = builder.amount;
        this.remark = builder.remark;
        this.remark01 = builder.remark01;
        this.remark02 = builder.remark02;
        this.state = builder.state;
        this.createTime = builder.createTime;
        this.createUser = builder.createUser;
        this.lastTime = builder.lastTime;
        this.lastUser = builder.lastUser;
    }
    /**
     * 自定义代码请写在此处之后
     */
}
